package com.scut.fy.common.core.constant;

/**
 * Oauth2的系统常量
 *
 * @author JY
 * @version 1.0
 * @date 2021/8/17 10:53
 */
public class FyConstant {

    /**
     * jwt签名
     */
    public static final String SIGN_KEY = "FOREVER_YOUNG";
    /**
     * 默认保存code的前缀
     */
    public static final String DEFAULT_CODE_KEY = "FY_IMGCODE_KEY";
    /**
     * 默认生成图形验证码过期时间
     */
    public static final int DEFAULT_IMAGE_EXPIRE = 60;


    /**
     * OAuth 2.0 规定了四种获得令牌的流程: 授权码
     */
    public static final String AUTHORIZATION_CODE = "authorization-code";
    /**
     * OAuth 2.0 规定了四种获得令牌的流程：密码
     */
    public static final String PASSWORD = "password";
    /**
     * OAuth 2.0 规定了四种获得令牌的流程：客户端凭证（client credentials）
     */
    public static final String CLIENT_CREDENTIALS = "client credentials";

    /**
     * 定义 用户被锁的状态是9
     */
    public static final String STATUS_LOCK = "9";
    /**
     * 定义 用户正常状态是 6
     */
    public static final String STATUS_NORMAL = "6";
    /**
     * 定义 用户被删除状态是 1
     */
    public static final String STATUS_DEL = "1";
}
